MMPlayer 接入方式说明
1. SDK 部分接入
MMPlayer提供两种方式供iOS开发者选择。
- 通过cocoaspods (推荐)
- 手动接入
1.1. 通过cocoapods接入
在工程的Podfile添加以下代码:
pod 'MMPlayer', '1.0.9', :source => 'https://github.com/cosmos33/MMSpecs.git'
保存并执行pod install
1.2. 手动接入
下载Framework : https://say-public.oss-cn-beijing.aliyuncs.com/cosmos/MMPlayer1.5.7.5.zip
拖拽 Frameworks 到工程根目录(注意勾选Copy items if needs选项)
添加依赖库
libiconv.tbd
libz.tbd
libbz2.tbd
libc++.tbd
libresolv.tbd
Foundation.framework
UIKit.framework.framework
CoreFoundation.framework
AudioToolbox.framework
AVFoundation.framework
CoreMedia.framework
CoreVideo.framework
Accelerate.framework
SystemConfiguration.framework
注意: 需要关闭工程 build setting
-> bitcode
, 并在 build setting
-> Other Link Flag
中添加 -ObjC
2. SDK 调用
请参考 MMPlayer 接入文档